<style>
    .info {
        line-height: 30px;
        padding: 0 10px;
    }

    .info_logout {
        cursor: pointer;
        float: right;
        color: brown;
    }

    .info_icon_main {
        width: 20px;
        margin-top: -5px;
    }
</style>
<div class="info">

    <b>系统当前日期：<span id="info_current_date"></span></b>
    <b>当前登陆：</b> <b class="info_current_user">系统管理员</b>
    <b>学院:</b> <b class="info_current_college">系统管理员</b> &nbsp;
    <span id="info_current_page"></span>
    <span class="info_logout"><i class="icon-man info_icon_main">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>登出系统</span>
</div>
<script>
    (function (root, undefined) {
        $('#info_current_date').html(new Date().format('Y年m月d日'));
        $('.info_logout').click(function (e) {
            window.location.href = '/index.html';
        });
        $.post('system/current', function (data) {
            //记录当前用户的信息
            app.userIdentifier = data;
            $('.info_current_user').text(data.mc || data.uname);
            
            $.post('college/get', function (_data) {
                var college = _.find(_data,{id:parseInt(app.userIdentifier.college_id)});
                 $('.info_current_college').text(college.text);
            })
        });


        $.subscribe(MSG.LOGOUT_USER, function () {
            window.location.href = '/index.html';
        });
    })($('.info'));

    $.subscribe(MSG.LEFT_MENU_EVENT, function (json) {
        var obj = JSON.parse(json);
        $('#info_current_page').text(obj.uri || "");
    });

</script>